﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WhatSNew.Master" AutoEventWireup="true" CodeBehind="UserManage.aspx.cs" Inherits="WhatSNew.Manage.UserManage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../jquery.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery("#manage").mouseover(function () {
                jQuery("ul #manage li:gt(0)").show(10);
            });
            jQuery("#manage").mouseleave(function () {
                jQuery("ul #manage li:gt(0)").hide(10);
            });
            jQuery("#userinfo").mouseover(function () {
                jQuery("ul #userinfo li:gt(0)").show(10);
            });
            jQuery("#userinfo").mouseleave(function () {
                jQuery("ul #userinfo li:gt(0)").hide(10);
            });
        }
        )
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderNav" runat="server">
    <div class="menu_header">
    <div class="menu_nav">
        <ul>
          <li><a >最新</a></li>
          <li><a >热门</a></li>
          <li><a href="../submission.aspx">投稿</a></li>
          <li>
              <ul style ="clear:both; position:relative;z-index:1000;" id = "userinfo">
                  <li style ="clear:both; width: 100px;"><span class = "navlink">我的账号</span></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "../User/Personal.aspx" style ="font-size: 14px;padding:10px;">个人信息</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style ="font-size: 14px;padding:10px;">新鲜事</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style ="font-size: 14px;padding:10px;">评论</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style ="font-size: 14px;padding:10px;">关注</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style ="font-size: 14px;padding:10px;">私信</a></li>
              </ul>
          </li>
          <li>
              <ul style ="clear:both; position:relative;z-index:1000;" id = "manage">
                  <li style ="clear:both; width: 100px;"><span class = "navlink">管理</span></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "NewsManage.aspx" style="font-size: 14px;padding:10px;">新鲜事管理</a></li>
                  <li style ="clear:both; width: 100px; display:none; background-color:#E7E4E4;"><a href = "UserMabage.aspx" style="font-size: 14px;padding:10px;">用户管理</a></li>
              </ul>
          </li>
        </ul>
          <div style ="float:right; text-align:right;">
              <div class ="item" style ="float:left;margin: 5px 5px">            
                      <asp:Button ID="BTN_Info1" runat="server" BorderStyle="None" Text="登陆" 
                          Height="30px" style ="margin: 9px 5px 5px; 
                           border-radius: 3px 3px" CssClass="btn-submit"/>
                      <asp:Button ID="BTN_Info2" runat="server" BorderStyle="None" Text="注册"
                          Height="30px" style ="margin: 9px 5px 5px;
                           border-radius: 3px 3px"  CssClass="btn-submit" />
              </div>
          </div>      
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content_resize">

        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1" OnRowCommand="GridView1_RowCommand" Width="496px">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="姓名" HeaderText="姓名" SortExpression="姓名" />
                <asp:BoundField DataField="用户类型" HeaderText="用户类型" SortExpression="用户类型" />
                <asp:BoundField DataField="发布新鲜事权限" HeaderText="发布新鲜事权限" SortExpression="发布新鲜事权限" />
                <asp:BoundField DataField="评论权限" HeaderText="评论权限" SortExpression="评论权限" />
                <asp:BoundField DataField="私信权限" HeaderText="私信权限" SortExpression="私信权限" />
                <asp:BoundField DataField="密码" HeaderText="密码" SortExpression="密码" />
                <asp:ButtonField ButtonType="Button" CommandName="del" Text="删除" />
                <asp:ButtonField ButtonType="Button" CommandName="Edit" Text="编辑" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WhatSNewConnectionString %>" SelectCommand="SELECT * FROM [UserView_1]"></asp:SqlDataSource>

    </div>
&nbsp;

</asp:Content>
